/**
 * 熊猫直播间初始化
 * @param page
 * @param sleep
 * @returns {Promise<void>}
 */
module.exports = async ({page, sleep}) => {
    await page.addStyleTag({
        content: `
        .upgrade-intro-component,
        .im-room-guide,
        #gift-control-vm,
        div#my-dear-haruna-vm
            {display: none !important;}
        `
    });
    await page.evaluate(() => {
        const $head = document.querySelector('#head-info-vm');
        window.scrollTo(0, $head.getBoundingClientRect().y);
    });
    await sleep(5000);
};